class Jinx:
    hero_hp = 1000
    hero_power = 210
    def __init__(self):
        self.name = "Jinx"

    def fight(self, enemy_hp, enemy_power):
        """
        :param enemy_hp: 敌人的血量，是整型
        :param enemy_power: 敌人的血量，是整型
        :return:
        """
        # 计算英雄最终的血量, 通过self.类变量 去调用 类中的类变量
        hero_final_hp = self.hero_hp - enemy_power
        # 计算敌人的最终血量
        enemy_final_hp = enemy_hp - self.hero_power
        # 判断最终谁的血量更多
        if hero_final_hp>enemy_final_hp:
            print("Jinx赢了")
        elif enemy_final_hp>hero_final_hp:
            print("敌人赢了")
        else:
            print("平局")

class EZ:
    hero_hp = 1100
    hero_power = 190
    def fight(self, enemy_hp, enemy_power):
        """
        :param enemy_hp: 敌人的血量，是整型
        :param enemy_power: 敌人的血量，是整型
        :return:
        """
        # 计算英雄最终的血量, 通过self.类变量 去调用 类中的类变量
        hero_final_hp = self.hero_hp - enemy_power
        # 计算敌人的最终血量
        enemy_final_hp = enemy_hp - self.hero_power
        # 判断最终谁的血量更多
        if hero_final_hp>enemy_final_hp:
            print("EZ赢了")
        elif enemy_final_hp>hero_final_hp:
            print("敌人赢了")
        else:
            print("平局")

jinx = Jinx()
jinx.fight(EZ.hero_hp, EZ.hero_power)